<%@ page contentType="text/html; charset=GBK" %><%@ page import="java.util.*" %><%@ page import="java.text.SimpleDateFormat" %><%@ page import="com.ionglobal.db.*" %><%@ page import="com.ionglobal.lib.*" %><%@ page import="com.ionglobal.misc.*" %><%@ page import="com.dhec.ggs.*"%><%
DBI dbi = new DBI();
Request Request = new Request(request);
int insert = Request.getInt("ins", 0);
int delete = Request.getInt("del", 0);
int year = Request.getInt("year", 0);
int month = Request.getInt("month", 0);
int day = Request.getInt("day", 0);
try{ 
     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
	 Date date = sdf.parse(year+"-"+month+"-"+day);
	 if(insert>0){
		 WorkCalendar.insertRestDay(dbi, date);
	 }else if(delete>0){
		 WorkCalendar.deleteRestDay(dbi, date);
	 }
}catch(Exception e){
	e.printStackTrace();
}finally{
	dbi.closeAll();	
}
%>